@echo off
echo Pulling latest code...
git pull

echo Building TypeScript...
call tsc --build

if %ERRORLEVEL% equ 0 (
    echo Build successful!
) else (
    echo Build failed with error code %ERRORLEVEL%
    pause
    exit /b %ERRORLEVEL%
)

pause